<?php
if ($_POST['TRANSTYPE'] == 1) {
    if (!isset($_POST['TRANSVIEW'])) {
        $_POST['TRANSVIEW'] = 76;
    }
    if ($_POST['View'] == 1) {
        $countries = Country::getActiveCountries();
    } elseif ($_POST['View'] == 2) {
        $countries = "SELECT CorrNumero AS ID, CorrNombre AS NAME FROM corresponsales WHERE CorrActivo = 1";
    } elseif ($_POST['View'] == 3) {
        $countries = "SELECT cvt_ID AS ID, cvt_Name AS NAME FROM hd_cashiertypes WHERE cvt_Flag = 2 AND cvt_Type = {$_POST['TRANSTYPE']}";
    }
} elseif ($_POST['TRANSTYPE'] == 2) {
    if (!isset($_POST['TRANSVIEW'])) {
        $_POST['TRANSVIEW'] = 1;
    }
    $countries = "SELECT miso_Cod_elite AS ID, miso_ID AS NAME FROM hd_monedasiso WHERE miso_Cod_elite > 0";
}
mn_field('select', 'ED', 'TRANSVIEW', $_POST['TRANSVIEW'], $countries, '', '', '"
	onChange="document.TRANSProperties.action=\'_response/call.php?get=Operative/viewdomaintransferresult\';
	subform(\'TRANSProperties\',\'Subcontents\');');